package com.sdkx.app.model;

import org.litepal.LitePal;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class AirSpaceGeneral extends ViewObject{
    private int id;//自增长主键
    public boolean visible;
    private List<AirSpace> spacelist = new ArrayList();

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public List<AirSpace> getSpacelist() {
        String info = AirSpaceGeneral.class.getSimpleName().toLowerCase()+"_id=";
        spacelist = LitePal.where(info+id).find(AirSpace.class);
        return spacelist;
    }

    public void setSpacelist(List<AirSpace> spacelist) {
        this.spacelist = spacelist;
    }
}
